0 CpxTRS
↳1 TrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxWeightedTrs
↳3 TypeInferenceProof (BOTH BOUNDS(ID, ID), 0 ms)
↳4 CpxTypedWeightedTrs
↳5 CompletionProof (UPPER BOUND(ID), 0 ms)
↳6 CpxTypedWeightedCompleteTrs
↳7 NarrowingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳10 CpxRNTS
↳11 SimplificationProof (BOTH BOUNDS(ID, ID), 0 ms)
↳12 CpxRNTS
↳13 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳14 CpxRNTS
↳15 IntTrsBoundProof (UPPER BOUND(ID), 546 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 113 ms)
↳18 CpxRNTS
↳19 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳20 CpxRNTS
↳21 IntTrsBoundProof (UPPER BOUND(ID), 51 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 54 ms)
↳24 CpxRNTS
↳25 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳26 CpxRNTS
↳27 IntTrsBoundProof (UPPER BOUND(ID), 97 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 57 ms)
↳30 CpxRNTS
↳31 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳32 CpxRNTS
↳33 IntTrsBoundProof (UPPER BOUND(ID), 199 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 63 ms)
↳36 CpxRNTS
↳37 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳38 CpxRNTS
↳39 IntTrsBoundProof (UPPER BOUND(ID), 426 ms)
↳40 CpxRNTS
↳41 IntTrsBoundProof (UPPER BOUND(ID), 151 ms)
↳42 CpxRNTS
↳43 FinalProof (⇔, 0 ms)
↳44 BOUNDS(1, n^2)
rev(nil) → nil
rev(.(x, y)) → ++(rev(y), .(x, nil))
car(.(x, y)) → x
cdr(.(x, y)) → y
null(nil) → true
null(.(x, y)) → false
++(nil, y) → y
++(.(x, y), z) → .(x, ++(y, z))
rev(nil) → nil [1]
rev(.(x, y)) → ++(rev(y), .(x, nil)) [1]
car(.(x, y)) → x [1]
cdr(.(x, y)) → y [1]
null(nil) → true [1]
null(.(x, y)) → false [1]
++(nil, y) → y [1]
++(.(x, y), z) → .(x, ++(y, z)) [1]
rev(nil) → nil [1]
rev(.(x, y)) → ++(rev(y), .(x, nil)) [1]
car(.(x, y)) → x [1]
cdr(.(x, y)) → y [1]
null(nil) → true [1]
null(.(x, y)) → false [1]
++(nil, y) → y [1]
++(.(x, y), z) → .(x, ++(y, z)) [1]
rev :: nil:. → nil:. nil :: nil:. . :: car → nil:. → nil:. ++ :: nil:. → nil:. → nil:. car :: nil:. → car cdr :: nil:. → nil:. null :: nil:. → true:false true :: true:false false :: true:false |
(a) The obligation is a constructor system where every type has a constant constructor,
(b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols:
car
cdr
null
rev
++
const
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
nil => 0
true => 1
false => 0
const => 0
++(z', z'') -{ 1 }→ y :|: z'' = y, y >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z) :|: z'' = z, z >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(0, 1 + x + 0) :|: x >= 0, z' = 1 + x + 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z'') :|: z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(0, 1 + (z' - 1) + 0) :|: z' - 1 >= 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
{ ++ } { null } { cdr } { car } { rev } |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z'') :|: z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(0, 1 + (z' - 1) + 0) :|: z' - 1 >= 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z'') :|: z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(0, 1 + (z' - 1) + 0) :|: z' - 1 >= 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: ?, size: O(n1) [z' + z''] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 1 }→ 1 + x + ++(y, z'') :|: z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(0, 1 + (z' - 1) + 0) :|: z' - 1 >= 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: ?, size: O(1) [1] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] cdr: runtime: ?, size: O(n1) [z'] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] cdr: runtime: O(1) [1], size: O(n1) [z'] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] cdr: runtime: O(1) [1], size: O(n1) [z'] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] cdr: runtime: O(1) [1], size: O(n1) [z'] car: runtime: ?, size: O(n1) [z'] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] cdr: runtime: O(1) [1], size: O(n1) [z'] car: runtime: O(1) [1], size: O(n1) [z'] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] cdr: runtime: O(1) [1], size: O(n1) [z'] car: runtime: O(1) [1], size: O(n1) [z'] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] cdr: runtime: O(1) [1], size: O(n1) [z'] car: runtime: O(1) [1], size: O(n1) [z'] rev: runtime: ?, size: O(n1) [z'] |
++(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
++(z', z'') -{ 2 + y }→ 1 + x + s' :|: s' >= 0, s' <= 1 * y + 1 * z'', z'' >= 0, z' = 1 + x + y, x >= 0, y >= 0
car(z') -{ 1 }→ x :|: z' = 1 + x + y, x >= 0, y >= 0
cdr(z') -{ 1 }→ y :|: z' = 1 + x + y, x >= 0, y >= 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: z' = 1 + x + y, x >= 0, y >= 0
rev(z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
rev(z') -{ 1 }→ 0 :|: z' = 0
rev(z') -{ 2 }→ ++(++(rev(y'), 1 + x' + 0), 1 + x + 0) :|: z' = 1 + x + (1 + x' + y'), x >= 0, x' >= 0, y' >= 0
++: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] cdr: runtime: O(1) [1], size: O(n1) [z'] car: runtime: O(1) [1], size: O(n1) [z'] rev: runtime: O(n2) [4 + 3·z' + 2·z'2], size: O(n1) [z'] |